# Author: Kuilin

# while True 设置条件，可终止循环

user_date = "Kuilin"
user_password = "123456789"
count = 3
while True:
    username = input("账号名称:")
    password = input("密码:")
    count -= 1

# 登录系统
    if username == user_date:
        if password == user_password:
            print("登录成功",username,"欢迎使用")
            break
        else:
            if count == 0:
                print("您的账号已被锁定，5min后请重试。")
                break
            else:
                print("您的账号和密码不正确,请重新输入，您还有",count,"次机会")
    else:
        if count == 0:
            print("您的账号已被锁定，5min后请重试。")
            break
        else:
            print("您的账号和密码不正确,请重新输入，您还有",count,"次机会")